<?php
  $moduleName = sfContext::getInstance()->getRequest()->getParameter("module");
?>
<div id="appTabs" class="page-layout-center">
    <ul id="appTabBtns" class="pane">
       <?php
         // application bar
         include_component('common', 'appBar', array());
       ?>
    </ul>

    <!-- wrap tab-panels in ui-layout-content div -->
    <div id="appContainer" class="pane">

        <!-- TAB #1 -->
        <div id="appStorehouse">

            <!-- #appStorehouseLeftPane, start -->
            <div id="appStorehouseLeftPane" class="ui-layout-west ui-widget ui-widget-content">
                <table id="appStorehouseMenu"></table>
            </div>
            <!-- #appStorehouseLeftPane, end -->

            <!-- #appStorehouseRightPane, start -->
            <div id="appStorehouseRightPane" class="ui-layout-center ui-helper-reset ui-widget-content" ><!-- Tabs pane -->
                <div id="switcher"></div>
                <div id="appStorehouseMenuTabs" style="font-size:12px; overflow:auto;">
                    <ul>
                        <li><a href="#tabs-1">欢迎</a></li>
                    </ul>
                    <div id="tabs-1">
                    <?php
                    //mainItem form, hidden form interface
                      include_component($moduleName, "welcome",
                                  array( 'partial'      => $moduleName."/".WacControlTableType::$defaultWelcome,
                                         'invokeParams' => array(
                                           'moduleName' => $moduleName,
                                           'caption'    => "",
                                           'attachName' => ""
                                           )
                                      ));
                      ?>
                    </div>
                </div>
            </div> 
            <!-- #appStorehouseRightPane, end -->

        </div><!-- #AppStorehouse -->

        <!-- TAB #2 -->
        <div id="appSystemManagement" class="ui-tabs-hide pane">
            <div id="appSystemManagementLeftPane" class="ui-layout-west ui-widget ui-widget-content">
                <table id="appSystemManagementMenu"></table>
            </div> <!-- #appSystemManagementLeftPane -->
            <div id="appSystemManagementRightPane" class="ui-layout-center ui-helper-reset ui-widget-content" ><!-- Tabs pane -->
                <div id="switcher"></div>
                <div id="appSystemManagementMenuTabs">
                    <ul> </ul>
                </div>
            </div> <!-- #appSystemManagementRightPane -->
        </div><!-- #AppSystemManagement -->

        <!-- TAB #3 -->
        <div id="appOthers" class="ui-tabs-hide pane">
               others others others others others others others others others others others others
                others others others others others others others others others others others others
        </div><!-- TAB #3 -->

    </div><!-- END TabPanelsContainer -->

    <div id="floatingBox" style="z-index:50; display: none;"  >
        <input type="button" style="background-color: #57E72E;" class="ui-button ui-state-default ui-corner-all" value="退出" onclick="javascript:wacRedirect('/logout');" />
    </div>

    <div id="footer" class="ui-layout-south pane footer" align="center">
         <span id="_rrt" title="webapp-china.com">WAC</span>&trade;
            is <a href="http://www.webapp-china.com/" title="Just Awesome">Logical Awesome</a> &copy;2010 | <a href="/site/terms">Terms of Service</a> | <a href="/site/privacy">Privacy Policy</a>
    </div>

    <div id="dynamicZone"></div>

    
</div><!-- /#tabs -->

